<template>
  <view class="pilot-profile-page">

    <!-- 个人基本信息 -->
    <view class="profile-header">
      <view class="avatar-container">
        <image :src="pilotInfo.avatar" alt="个人头像" class="avatar"></image>
        <view class="verified-badge" v-if="pilotInfo.verified">
          <uni-icons type="checkmark-circle" size="16" color="#165DFF"></uni-icons>
        </view>
      </view>
      
      <view class="basic-info">
        <view class="name-rating">
          <view class="name">{{ pilotInfo.name }}</view>
          <view class="rating">
            <uni-icons type="star" size="16" color="#FFD700" v-for="(star, i) in 5" :key="i" :filled="i < pilotInfo.rating"></uni-icons>
            <text class="rating-value">{{ pilotInfo.rating.toFixed(1) }}</text>
          </view>
        </view>
        
        <view class="title">{{ pilotInfo.title }}</view>
        
        <view class="location-experience">
          <view class="location">
            <uni-icons type="map-pin" size="14" color="#86909C"></uni-icons>
            <text>{{ pilotInfo.location }}</text>
          </view>
          <view class="experience">
            <uni-icons type="clock" size="14" color="#86909C"></uni-icons>
            <text>{{ pilotInfo.yearsOfExperience }}年飞行经验</text>
          </view>
        </view>
      </view>
      
      <view class="contact-btn" @click="contactPilot">
        <uni-icons type="phone" size="18" class="btn-icon"></uni-icons>
        <text>联系我</text>
      </view>
    </view>

    <!-- 核心能力标签 -->
    <view class="core-skills">
      <view class="skill-tag" v-for="(skill, i) in pilotInfo.coreSkills" :key="i">
        {{ skill }}
      </view>
    </view>

    <!-- 个人简介内容 -->
    <view class="profile-content">
      <!-- 专业资质 -->
      <view class="content-section">
        <view class="section-title">
          <uni-icons type="certificate" size="18" class="title-icon"></uni-icons>
          <text>专业资质</text>
        </view>
        <view class="section-content">
          <view class="license-list">
            <view class="license-item" v-for="(license, i) in pilotInfo.licenses" :key="i">
              <view class="license-icon">
                <uni-icons type="document" size="24" color="#165DFF"></uni-icons>
              </view>
              <view class="license-info">
                <view class="license-name">{{ license.name }}</view>
                <view class="license-details">
                  <text class="issue-date">发证时间: {{ license.issueDate }}</text>
                  <text class="license-status" :class="license.status === '有效' ? 'valid' : 'expired'">{{ license.status }}</text>
                </view>
              </view>
              <view class="view-license" @click="viewLicenseDetail(license)">
                <uni-icons type="arrow-right" size="18" color="#86909C"></uni-icons>
              </view>
            </view>
          </view>
        </view>
      </view>
      
      <!-- 设备经验 -->
      <view class="content-section">
        <view class="section-title">
          <uni-icons type="airplane" size="18" class="title-icon"></uni-icons>
          <text>设备经验</text>
        </view>
        <view class="section-content">
          <view class="equipment-categories">
            <view class="equipment-category" v-for="(category, index) in pilotInfo.equipmentExperience" :key="index">
              <view class="category-name">{{ category.category }}</view>
              <view class="equipment-list">
                <view class="equipment-item" v-for="(equip, i) in category.equipments" :key="i">
                  <view class="equipment-name">{{ equip.name }}</view>
                  <view class="experience-level">
                    <view class="experience-bar" :style="{ width: equip.experienceLevel + '%' }"></view>
                  </view>
                  <view class="experience-text">{{ equip.experienceText }}</view>
                </view>
              </view>
            </view>
          </view>
        </view>
      </view>
      
      <!-- 工作经历 -->
      <view class="content-section">
        <view class="section-title">
          <uni-icons type="briefcase" size="18" class="title-icon"></uni-icons>
          <text>工作经历</text>
        </view>
        <view class="section-content">
          <view class="experience-list">
            <view class="experience-item" v-for="(exp, i) in pilotInfo.workExperience" :key="i">
              <view class="experience-header">
                <view class="company-project">
                  <view class="company-name">{{ exp.company }}</view>
                  <view class="project-name">{{ exp.project }}</view>
                </view>
                <view class="time-period">{{ exp.period }}</view>
              </view>
              <view class="experience-details">
                <view class="position">{{ exp.position }}</view>
                <view class="description">
                  <view class="detail-point" v-for="(point, idx) in exp.description" :key="idx">
                    <view class="point-icon"></view>
                    <text class="point-text">{{ point }}</text>
                  </view>
                </view>
                <view class="used-equipments">
                  <text class="equip-label">使用设备:</text>
                  <text class="equip-names">{{ exp.usedEquipments.join('、') }}</text>
                </view>
              </view>
            </view>
          </view>
        </view>
      </view>
      
      <!-- 项目案例 -->
      <view class="content-section">
        <view class="section-title">
          <uni-icons type="images" size="18" class="title-icon"></uni-icons>
          <text>项目案例</text>
        </view>
        <view class="section-content">
          <view class="project-list">
            <view class="project-item" v-for="(project, i) in pilotInfo.projectCases" :key="i" @click="viewProjectDetail(project)">
              <view class="project-images">
                <image 
                  :src="project.coverImage" 
                  alt="项目图片" 
                  class="project-image"
                  v-if="i === 0"
                ></image>
                <view class="image-count" v-if="project.imageCount > 1">
                  <text>+{{ project.imageCount - 1 }}</text>
                </view>
              </view>
              <view class="project-info">
                <view class="project-title">{{ project.title }}</view>
                <view class="project-type">{{ project.type }}</view>
                <view class="project-description">{{ project.description }}</view>
              </view>
            </view>
          </view>
        </view>
      </view>
      
      <!-- 自我评价 -->
      <view class="content-section">
        <view class="section-title">
          <uni-icons type="comment" size="18" class="title-icon"></uni-icons>
          <text>自我评价</text>
        </view>
        <view class="section-content self-intro">
          <text>{{ pilotInfo.selfIntroduction }}</text>
        </view>
      </view>
    </view>

    <!-- 联系飞手弹窗 -->
    <view class="contact-modal" v-if="showContactModal">
      <view class="modal-mask" @click="closeContactModal"></view>
      <view class="modal-content">
        <view class="modal-header">
          <text class="modal-title">联系 {{ pilotInfo.name }}</text>
          <uni-icons type="close" size="22" class="modal-close" @click="closeContactModal"></uni-icons>
        </view>
        
        <view class="contact-methods">
          <view class="contact-method" @click="makePhoneCall">
            <view class="method-icon call-icon">
              <uni-icons type="phone" size="24"></uni-icons>
            </view>
            <view class="method-info">
              <view class="method-name">电话联系</view>
              <view class="method-detail">{{ pilotInfo.phone }}</view>
            </view>
          </view>
          
          <view class="contact-method" @click="sendMessage">
            <view class="method-icon message-icon">
              <uni-icons type="chatbubble" size="24"></uni-icons>
            </view>
            <view class="method-info">
              <view class="method-name">发送短信</view>
              <view class="method-detail">{{ pilotInfo.phone }}</view>
            </view>
          </view>
          
          <view class="contact-method" @click="sendEmail">
            <view class="method-icon email-icon">
              <uni-icons type="email" size="24"></uni-icons>
            </view>
            <view class="method-info">
              <view class="method-name">发送邮件</view>
              <view class="method-detail">{{ pilotInfo.email }}</view>
            </view>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      // 飞手信息
      pilotInfo: {
        id: 1001,
        name: '李明',
        avatar: 'https://picsum.photos/id/237/200/200',
        verified: true,
        rating: 4.8,
        title: '资深无人机航拍飞手 / 影视航拍总监',
        location: '北京市·朝阳区',
        yearsOfExperience: 6,
        coreSkills: ['影视航拍', '测绘建模', '航线规划', '设备维护', '团队管理'],
        phone: '138****6789',
        email: 'liming@example.com',
        
        // 专业资质
        licenses: [
          {
            id: 1,
            name: 'CAAC 无人机驾驶员执照 (视距内驾驶员)',
            issueDate: '2018-06-15',
            expiryDate: '2024-06-14',
            status: '有效',
            category: '多旋翼',
            level: 'A2'
          },
          {
            id: 2,
            name: 'AOPA 无人机机长证书',
            issueDate: '2017-03-20',
            expiryDate: '2023-03-19',
            status: '已过期',
            category: '多旋翼',
            level: 'III'
          },
          {
            id: 3,
            name: '红十字会急救证书',
            issueDate: '2022-09-05',
            expiryDate: '2025-09-04',
            status: '有效'
          }
        ],
        
        // 设备经验
        equipmentExperience: [
          {
            category: '消费级无人机',
            equipments: [
              {
                name: '大疆 Mavic 3 Pro',
                experienceLevel: 95,
                experienceText: '精通 (2年+经验)'
              },
              {
                name: '大疆 Air 2S',
                experienceLevel: 90,
                experienceText: '精通 (1.5年经验)'
              },
              {
                name: '大疆 Mini 3 Pro',
                experienceLevel: 85,
                experienceText: '熟练 (1年经验)'
              }
            ]
          },
          {
            category: '专业级无人机',
            equipments: [
              {
                name: '大疆 Inspire 2',
                experienceLevel: 100,
                experienceText: '专家级 (4年+经验)'
              },
              {
                name: '大疆 Phantom 4 RTK',
                experienceLevel: 90,
                experienceText: '精通 (3年经验)'
              },
              {
                name: '大疆 Matrice 300 RTK',
                experienceLevel: 80,
                experienceText: '熟练 (2年经验)'
              }
            ]
          },
          {
            category: '农业无人机',
            equipments: [
              {
                name: '大疆 T30',
                experienceLevel: 60,
                experienceText: '掌握 (1年经验)'
              },
              {
                name: '极飞 P80',
                experienceLevel: 50,
                experienceText: '熟悉 (6个月经验)'
              }
            ]
          }
        ],
        
        // 工作经历
        workExperience: [
          {
            company: '天际航拍传媒有限公司',
            project: '央视春晚航拍项目',
            period: '2020-01 至 至今',
            position: '航拍总监 / 首席飞手',
            description: [
              '负责大型活动航拍项目的规划与执行，带领5人飞手团队完成各类拍摄任务',
              '制定详细的飞行方案和应急预案，确保拍摄安全与质量',
              '与导演组紧密配合，完成复杂镜头的设计与拍摄',
              '负责团队飞手的技能培训和设备管理'
            ],
            usedEquipments: ['大疆 Inspire 2', '大疆 Phantom 4 Pro', '大疆 Mavic 2 Pro']
          },
          {
            company: '蓝图测绘技术有限公司',
            project: '城市三维建模项目',
            period: '2018-03 至 2019-12',
            position: '无人机测绘飞手',
            description: [
              '负责城市建筑三维建模数据采集，规划高效飞行航线',
              '操作专业测绘无人机完成高精度数据采集任务',
              '参与数据后期处理，确保建模精度符合项目要求',
              '协助团队完成多个大型市政项目的测绘工作'
            ],
            usedEquipments: ['大疆 Phantom 4 RTK', '固定翼测绘无人机', '大疆 Matrice 210']
          },
          {
            company: '飞鹰无人机培训学院',
            period: '2017-01 至 2018-02',
            position: '无人机飞行教练',
            description: [
              '负责无人机驾驶员培训课程的教学工作',
              '编写培训教材和实操指南',
              '指导学员通过AOPA/CAAC执照考试',
              '累计培训学员超过200人'
            ],
            usedEquipments: ['大疆 Phantom 4', '大疆 Mavic Pro', '固定翼训练机']
          }
        ],
        
        // 项目案例
        projectCases: [
          {
            id: 1,
            title: '2023年央视春晚深圳分会场航拍',
            type: '影视拍摄',
            description: '负责分会场全景航拍和动态镜头拍摄，协调多机协同作业',
            coverImage: 'https://picsum.photos/id/1015/400/300',
            imageCount: 12
          },
          {
            id: 2,
            title: '北京市朝阳区城市三维建模',
            type: '测绘建模',
            description: '完成100平方公里城区三维数据采集，精度达5cm',
            coverImage: 'https://picsum.photos/id/1016/400/300',
            imageCount: 8
          },
          {
            id: 3,
            title: '电影《航拍中国》部分镜头拍摄',
            type: '影视拍摄',
            description: '参与第三集和第七集的航拍镜头设计与执行',
            coverImage: 'https://picsum.photos/id/1018/400/300',
            imageCount: 15
          }
        ],
        
        // 自我评价
        selfIntroduction: '拥有6年无人机飞行经验，持有CAAC视距内驾驶员执照，精通各类专业航拍设备。曾参与央视春晚、电影拍摄等大型项目，具备丰富的现场协调和应急处理能力。熟悉影视航拍、测绘建模、农业植保等多个领域的作业流程。注重飞行安全，严格遵守各项规章制度，至今保持零事故记录。为人踏实负责，团队协作能力强，期待与更多专业团队合作。'
      },
      
      // 弹窗状态
      showContactModal: false
    };
  },
  
  onLoad(options) {
    // 实际项目中这里会根据用户ID请求接口获取个人信息
    this.loadPilotProfile();
	uni.setNavigationBarTitle({
		title:options.title
	})
  },
  
  methods: {
    // 加载飞手个人信息
    loadPilotProfile() {
      // 模拟API请求
      setTimeout(() => {
        console.log('加载飞手个人信息成功');
        // 实际项目中会根据接口返回数据更新this.pilotInfo
      }, 800);
    },
    
    // 返回上一页
    navBack() {
      uni.navigateBack();
    },
    
    // 编辑个人资料
    editProfile() {
      uni.navigateTo({
        url: '/pages/profile/edit-profile'
      });
    },
    
    // 联系飞手
    contactPilot() {
      this.showContactModal = true;
    },
    
    // 关闭联系弹窗
    closeContactModal() {
      this.showContactModal = false;
    },
    
    // 拨打电话
    makePhoneCall() {
      const phone = this.pilotInfo.phone.replace('*', '');
      uni.makePhoneCall({
        phoneNumber: phone,
        success: () => {
          this.closeContactModal();
        }
      });
    },
    
    // 发送短信
    sendMessage() {
      const phone = this.pilotInfo.phone.replace('*', '');
      uni.sms({
        phoneNumber: phone,
        success: () => {
          this.closeContactModal();
        }
      });
    },
    
    // 发送邮件
    sendEmail() {
      uni.navigateTo({
        url: `/pages/chat/send-email?to=${this.pilotInfo.email}&name=${this.pilotInfo.name}`
      });
      this.closeContactModal();
    },
    
    // 查看资质详情
    viewLicenseDetail(license) {
      uni.navigateTo({
        url: `/pages/profile/license-detail?id=${license.id}`
      });
    },
    
    // 查看项目详情
    viewProjectDetail(project) {
      uni.navigateTo({
        url: `/pages/profile/project-detail?id=${project.id}`
      });
    }
  }
};
</script>

<style scoped lang="scss">
// 颜色变量
$primary: #165DFF;
$primary-light: #E8F3FF;
$danger: #FF4D4F;
$warning: #FF7D00;
$success: #00B42A;
$text-primary: #1D2129;
$text-secondary: #4E5969;
$text-tertiary: #86909C;
$bg-light: #F5F7FA;
$bg-white: #FFFFFF;
$border-light: #E5E6EB;
$shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);

.pilot-profile-page {
  background-color: $bg-light;
  min-height: 100vh;
  padding-top: var(--status-bar-height);
}

// 导航栏
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px;
  background-color: $bg-white;
  border-bottom: 1px solid $border-light;
  
  .back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    
    &:active {
      background-color: $bg-light;
    }
  }
  
  .nav-title {
    font-size: 18px;
    font-weight: 600;
    color: $text-primary;
  }
  
  .edit-btn {
    color: $primary;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 4px;
    
    &:active {
      background-color: $primary-light;
    }
  }
}

// 个人基本信息
.profile-header {
  display: flex;
  align-items: center;
  background-color: $bg-white;
  padding: 20px 16px;
  margin-bottom: 16px;
  
  .avatar-container {
    position: relative;
    margin-right: 16px;
    
    .avatar {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid $primary-light;
    }
    
    .verified-badge {
      position: absolute;
      bottom: 0;
      right: 0;
      width: 28px;
      height: 28px;
      background-color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
  }
  
  .basic-info {
    flex: 1;
    
    .name-rating {
      display: flex;
      align-items: center;
      margin-bottom: 8px;
      
      .name {
        font-size: 22px;
        font-weight: 600;
        color: $text-primary;
        margin-right: 10px;
      }
      
      .rating {
        display: flex;
        align-items: center;
        
        .rating-value {
          font-size: 14px;
          color: $text-secondary;
          margin-left: 5px;
        }
      }
    }
    
    .title {
      font-size: 15px;
      color: $text-secondary;
      margin-bottom: 8px;
      line-height: 1.4;
    }
    
    .location-experience {
      display: flex;
      gap: 16px;
      
      .location, .experience {
        display: flex;
        align-items: center;
        font-size: 14px;
        color: $text-tertiary;
        
        text {
          margin-left: 4px;
        }
      }
    }
  }
  
  .contact-btn {
    min-width: 90px;
    height: 40px;
    background-color: $primary;
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 0 16px;
    white-space: nowrap;
    
    .btn-icon {
      margin-right: 6px;
    }
    
    &:active {
      background-color: #0E42D2;
    }
  }
}

// 核心能力标签
.core-skills {
  padding: 0 16px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background-color: $primary-light;
  color: $primary;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 16px;
}

// 个人简介内容
.profile-content {
  padding: 0 16px;
  
  .content-section {
    background-color: $bg-white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .section-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: $text-primary;
    margin-bottom: 16px;
    
    .title-icon {
      margin-right: 8px;
      color: $primary;
    }
  }
  
  .section-content {
    color: $text-secondary;
    font-size: 14px;
    line-height: 1.6;
  }
}

// 专业资质
.license-list {
  .license-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid $border-light;
    
    &:last-child {
      border-bottom: none;
    }
    
    .license-icon {
      margin-right: 16px;
      color: $text-tertiary;
    }
    
    .license-info {
      flex: 1;
      
      .license-name {
        font-size: 15px;
        font-weight: 500;
        color: $text-primary;
        margin-bottom: 4px;
      }
      
      .license-details {
        display: flex;
        align-items: center;
        font-size: 12px;
        color: $text-tertiary;
        
        .license-status {
          margin-left: 12px;
          padding: 2px 6px;
          border-radius: 4px;
          font-size: 12px;
          
          &.valid {
            background-color: rgba(0, 180, 42, 0.1);
            color: $success;
          }
          
          &.expired {
            background-color: rgba(255, 77, 79, 0.1);
            color: $danger;
          }
        }
      }
    }
    
    .view-license {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      
      &:active {
        background-color: $bg-light;
      }
    }
  }
}

// 设备经验
.equipment-categories {
  .equipment-category {
    margin-bottom: 20px;
    
    &:last-child {
      margin-bottom: 0;
    }
    
    .category-name {
      font-size: 15px;
      font-weight: 500;
      color: $text-primary;
      margin-bottom: 12px;
      padding-left: 4px;
    }
    
    .equipment-list {
      .equipment-item {
        margin-bottom: 16px;
        
        &:last-child {
          margin-bottom: 0;
        }
        
        .equipment-name {
          font-size: 14px;
          color: $text-primary;
          margin-bottom: 6px;
        }
        
        .experience-level {
          height: 6px;
          background-color: $bg-light;
          border-radius: 3px;
          overflow: hidden;
          margin-bottom: 4px;
          
          .experience-bar {
            height: 100%;
            background-color: $primary;
            border-radius: 3px;
            transition: width 0.5s ease;
          }
        }
        
        .experience-text {
          font-size: 12px;
          color: $text-tertiary;
        }
      }
    }
  }
}

// 工作经历
.experience-list {
  .experience-item {
    padding: 16px 0;
    border-bottom: 1px solid $border-light;
    
    &:last-child {
      border-bottom: none;
    }
    
    .experience-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 12px;
      
      .company-project {
        .company-name {
          font-size: 15px;
          font-weight: 600;
          color: $text-primary;
          margin-bottom: 4px;
        }
        
        .project-name {
          font-size: 14px;
          color: $primary;
        }
      }
      
      .time-period {
        font-size: 13px;
        color: $text-tertiary;
        white-space: nowrap;
      }
    }
    
    .experience-details {
      .position {
        font-size: 14px;
        font-weight: 500;
        color: $text-secondary;
        margin-bottom: 8px;
      }
      
      .description {
        margin-bottom: 12px;
        
        .detail-point {
          display: flex;
          margin-bottom: 8px;
          
          &:last-child {
            margin-bottom: 0;
          }
        }
        
        .point-icon {
          width: 6px;
          height: 6px;
          border-radius: 50%;
          background-color: $primary;
          margin-top: 8px;
          margin-right: 10px;
          flex-shrink: 0;
        }
      }
      
      .used-equipments {
        font-size: 13px;
        
        .equip-label {
          color: $text-tertiary;
          margin-right: 6px;
        }
        
        .equip-names {
          color: $text-secondary;
        }
      }
    }
  }
}

// 项目案例
.project-list {
  .project-item {
    display: flex;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid $border-light;
    
    &:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: none;
    }
    
    &:active {
      background-color: $bg-light;
    }
    
    .project-images {
      position: relative;
      width: 100px;
      height: 100px;
      border-radius: 8px;
      overflow: hidden;
      margin-right: 12px;
      
      .project-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      
      .image-count {
        position: absolute;
        bottom: 4px;
        right: 4px;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        font-size: 12px;
        padding: 2px 6px;
        border-radius: 4px;
      }
    }
    
    .project-info {
      flex: 1;
      
      .project-title {
        font-size: 15px;
        font-weight: 500;
        color: $text-primary;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      
      .project-type {
        font-size: 12px;
        color: $primary;
        background-color: $primary-light;
        padding: 2px 6px;
        border-radius: 4px;
        display: inline-block;
        margin-bottom: 6px;
      }
      
      .project-description {
        font-size: 13px;
        color: $text-secondary;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
    }
  }
}

// 自我评价
.self-intro {
  padding: 8px 4px;
  line-height: 1.8;
  text-align: justify;
}

// 联系飞手弹窗
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  
  .modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
  }
  
  .modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: $bg-white;
    border-radius: 16px 16px 0 0;
    padding: 20px 16px;
    animation: slideUp 0.3s;
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    
    .modal-title {
      font-size: 18px;
      font-weight: 600;
      color: $text-primary;
    }
    
    .modal-close {
      color: $text-tertiary;
    }
  }
  
  .contact-methods {
    .contact-method {
      display: flex;
      align-items: center;
      padding: 16px 0;
      border-bottom: 1px solid $border-light;
      
      &:last-child {
        border-bottom: none;
      }
      
      .method-icon {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 16px;
        
        &.call-icon {
          background-color: rgba(0, 180, 42, 0.1);
          color: $success;
        }
        
        &.message-icon {
          background-color: rgba(22, 93, 255, 0.1);
          color: $primary;
        }
        
        &.email-icon {
          background-color: rgba(255, 125, 0, 0.1);
          color: $warning;
        }
      }
      
      .method-info {
        flex: 1;
        
        .method-name {
          font-size: 16px;
          font-weight: 500;
          color: $text-primary;
          margin-bottom: 4px;
        }
        
        .method-detail {
          font-size: 14px;
          color: $text-secondary;
        }
      }
    }
  }
}

// 动画效果
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
</style>
    